package cc.linker.steplink.crm.commons.model;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * oss配置类，为便于管理，后期应移到application-prod.properties内
 * <p>管理配置的属性</p>
 */
@ConditionalOnMissingBean
@ConfigurationProperties(value = "oss", ignoreUnknownFields = true)
@Getter
@Setter
public class OssProperties {
    /**
     * endpoint
     */
    private String endpoint;

    /**
     * endpoint
     */
    private String endpoint2;
    
    private String accessKeyId;
    
    private String accessKeySecret;
    
    private String backetName;

    /**
     * img-cn-hangzhou.aliyuncs.com
     */
    private String backetImgUrl;

    /**
     * hzlh-test.linker.cc
     */
    private String httpPath;
    
    private String expireTime;
    
    /**
     * 0 oss 1 FTP
     */
    private String isoss;
    /**
     * http或者https
     */
    private String perfix;
    /**
     * 图片根路径
     */
    private String imgRoot;
}
